<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #img_1{
            background: url(image/xiaomi.jpg) no-repeat center;
            background-size: cover;
            background-position: center;
        }
        #img_2{
            background: url(image/iph.jpg) no-repeat center;
            background-size: cover;
            background-position: center;
        }
        .div_1 {
            width: 400px;
            height: 200px;
            text-align: center;
            display: inline-block;
            margin-left: 30px;
        }
        .div_2 {
            background-color: rgb(0, 0, 0, 0.57);
            color: white;
            height: 26.5px;
            padding-top: 3.5px;
            font-size: 17px;
        }
        .div_3 {
            height: 170px;
        }
        #div{
            text-align: center;
        }
    </style>
</head>

<body>
    <div id="div">
        <div class="div_1" id="img_1">
            <div class="div_3"></div>
            <div class="div_2">
                小米12 Ultra渲染图曝光
            </div>
        </div>
        <div class="div_1" id="img_2">
            <div class="div_3"></div>
            <div class="div_2">
                iPhone 13持续热销
            </div>
        </div>
    </div>
</body>

</html>